﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Samples.ServiceHosting.StorageClient;

namespace Inscription_WebRole
{
    public class DataServiceContext : TableStorageDataServiceContext
    {
            public DataServiceContext(StorageAccountInfo accountInfo): base(accountInfo)
            {
            }

            internal const string tableName = "InscriptionTable";

            public IQueryable<Inscription> InscriptionTable //Do not call InscriptionTable Table !!
            {
                get
                {
                    return this.CreateQuery<Inscription>(tableName);
                }
            }         
    }
}
